package com.aaa.service.impl;

import com.aaa.dao.TextureMapper;
import com.aaa.entity.Texture;
import com.aaa.service.TextureServiceDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TextureServiceImpl implements TextureServiceDao {
    @Resource
    TextureMapper textureMapper;
    @Override
    public List<Texture> find() {
        return textureMapper.find();
    }

    @Override
    public int add(Texture texture) {
        return textureMapper.add(texture);
    }

    @Override
    public int update(Texture texture) {
        return textureMapper.update(texture);
    }

    @Override
    public int delete(Integer id) {
        return textureMapper.delete(id);
    }

    @Override
    public List<Texture> findpage(Integer pageSize, Integer pageNum) {
        return textureMapper.findpage(pageSize, pageNum);
    }

    @Override
    public Integer findcount() {
        return textureMapper.findcount();
    }
}
